package com.xy.repository.order;

import com.xy.entity.order.OrderMain;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by Thinkpad on 2018/1/12.
 */
public interface OrderMainRepository extends JpaRepository<OrderMain, String> {
    Page<OrderMain> findByUserId(String userId, Pageable pageable);
    OrderMain findAllByUserId(String userId);

}
